package cn.abdl.springsecurity.dao;

import cn.abdl.springsecurity.entity.dto.SysUserDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.Optional;

@Mapper
public interface SysUserDao {
    int deleteByPrimaryKey(Long id);

    int insert(SysUserDto record);

    int insertSelective(SysUserDto record);

    SysUserDto selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserDto record);

    int updateByPrimaryKey(SysUserDto record);

    Optional<SysUserDto> findByUsername(String name);

    SysUserDto getUserByUsername(String userName);
}